package com.ityueqiangu.project.galleryinfo.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import com.ityueqiangu.project.galleryinfo.domain.GalleryInfo;

/**
 * @author Clever、xia
 * @title: GalleryInfoMapper
 * @description:
 * @date 2021-03-14 11:14:22
 */
@Mapper
public interface GalleryInfoMapper {

	/**
     * 查询所有记录
     *
     * @return 返回集合，没有返回空List
     */
	List<GalleryInfo> selectGalleryInfoList(GalleryInfo galleryInfo);


	/**
     * 根据主键查询
     *
     * @param id 主键
     * @return 返回记录，没有返回null
     */
	GalleryInfo selectGalleryInfoById(Integer id);
	
	/**
     * 新增，插入所有字段
     *
     * @param galleryInfo 新增的记录
     * @return 返回影响行数
     */
	Integer insertGalleryInfo(GalleryInfo galleryInfo);
	
	
	/**
     * 修改
     *
     * @param galleryInfo 修改的记录
     * @return 返回影响行数
     */
	Integer updateGalleryInfo(GalleryInfo galleryInfo);
	

	/**
     * 删除记录
     *
     * @param id
     * @return 返回影响行数
     */
	Integer deleteGalleryInfoById(Integer id);

	/**
	 * 查询到单条记录
	 * @param galleryInfo
	 * @return
	 */
	GalleryInfo getOne(GalleryInfo galleryInfo);
}